<form id="edit-form" class="form-horizontal" style="position:relative;background: #fff" role="form" data-toggle="validator" method="POST" action="">
    
    <div class="panel-body">
        <div id="myTabContent" class="tab-content" >
            <div class="tab-pane fade active in" id="tabs_0">
                <div class="form-group">
                        <label for="c-title" class="control-label col-xs-12 col-sm-2">标题:</label>
                        <div class="col-xs-12 col-sm-8" id="div-title" >
                            <input type="text" id="c-title" name="row[title]" value="{$row.title}" class="form-control" title="title"  placeholder="" data-rule=""  data-tip="标题"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-thumb" class="control-label col-xs-12 col-sm-2">头图:</label>
                        <div class="col-xs-12 col-sm-8" id="div-thumb" >
                            <div class="form-inline">
                                <input id="c-thumb" class="form-control" size="39" name="row[thumb]" type="text" value="{$row.thumb}" data-tip="头图">
                                <span><button type="button" id="plupload-thumb" class="btn btn-danger plupload" data-input-id="c-thumb" data-mimetype="image/*" data-multiple="false" data-preview-id="p-thumb"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                                <span><button type="button" id="fachoose-thumb" class="btn btn-primary fachoose" data-input-id="c-thumb" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                                <ul class="row list-inline plupload-preview" id="p-thumb"></ul>
                            </div>
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-content" class="control-label col-xs-12 col-sm-2">内容:</label>
                        <div class="col-xs-12 col-sm-8" id="div-content" >
                            <textarea name="row[content]" id="editor-content" class="form-control editor" data-rule="" rows="5" data-tip="内容" >{$row.content}</textarea>
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-userid" class="control-label col-xs-12 col-sm-2">用户:</label>
                        <div class="col-xs-12 col-sm-8" id="div-userid" >
                            <input type="number" id="c-userid" name="row[userid]" value="{$row.userid}" class="form-control" title="userid" data-rule="integer" placeholder="只能填入整数"  data-tip="用户"  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-city_id" class="control-label col-xs-12 col-sm-2">城市:</label>
                        <div class="col-xs-12 col-sm-8" id="div-city_id" >
                        <label for="c-city_id" class="control-label col-xs-12 col-sm-2"></label>
                        <div style="margin-top:-2px">
                            <input id="c-city_id" data-rule=""data-select-only="true"
                                   data-source="/adminht.php/city/city/lists" data-multiple="false" data-field="name" data-value="{$row.city_id}"
                                   class="form-control selectpage" data-rule="require" name="row[city_id]"
                                   type="text" value="{$row.city_id}">
                        </div>
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-school_id" class="control-label col-xs-12 col-sm-2">学校:</label>
                        <div class="col-xs-12 col-sm-8" id="div-school_id" >
                        <label for="c-school_id" class="control-label col-xs-12 col-sm-2"></label>
                        <div style="margin-top:-2px">
                            <input id="c-school_id" data-rule=""data-select-only="true"
                                   data-source="/adminht.php/school/school/lists" data-multiple="false" data-field="name" data-value="{$row.school_id}"
                                   class="form-control selectpage" data-rule="require" name="row[school_id]"
                                   type="text" value="{$row.school_id}">
                        </div>
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-status" class="control-label col-xs-12 col-sm-2">状态:</label>
                        <div class="col-xs-12 col-sm-8" id="div-status" >
                            <label for="row[status]-0"><input id="row[status]-0" name="row[status]" type="radio" value="0" data-tip="状态" {if $row["status"]=="0" or $row["status"]==""}checked{/if} /> 未上线</label>

                            <label for="row[status]-1"><input id="row[status]-1" name="row[status]" type="radio" value="1" data-tip="状态" {if $row["status"]=="1"}checked{/if} /> 已上线</label>
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-update_time" class="control-label col-xs-12 col-sm-2">修改时间:</label>
                        <div class="col-xs-12 col-sm-8" id="div-update_time" >
                            <input type="text" id="c-update_time" name="row[update_time]" value="{$row.update_time}" class="form-control datetimepicker"  data-use-current="true"  data-date-format="YYYY-MM-DD HH:mm:ss" data-tip="修改时间" data-rule=""  />
                        </div>
                   </div>

                   <div class="form-group">
                        <label for="c-create_time" class="control-label col-xs-12 col-sm-2">发布时间:</label>
                        <div class="col-xs-12 col-sm-8" id="div-create_time" >
                            <input type="text" id="c-create_time" name="row[create_time]" value="{$row.create_time}" class="form-control datetimepicker"  data-use-current="true"  data-date-format="YYYY-MM-DD HH:mm:ss" data-tip="发布时间" data-rule=""  />
                        </div>
                   </div>
                <div class="form-group layer-footer">
                    <label class="control-label col-xs-12 col-sm-2"></label>
                    <div class="col-xs-12 col-sm-8">
                        <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
                        <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
                    </div>
                </div>
            </div>
            
        </div>
    </div>
</form>

